package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:19
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductRequirementRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long requirementId;

    /**
     * Attribute requirementId Be Seted Falg
     */
    private boolean requirementIdSetted = false;

    /**
    * Attribute requirementId is Null Falg
    */
    private boolean requirementIdNull = false;
    private long relatedRequirementId;

    /**
     * Attribute relatedRequirementId Be Seted Falg
     */
    private boolean relatedRequirementIdSetted = false;

    /**
    * Attribute relatedRequirementId is Null Falg
    */
    private boolean relatedRequirementIdNull = false;
    private String relatedType;

    /**
     * Attribute relatedType Be Seted Falg
     */
    private boolean relatedTypeSetted = false;

    /**
    * Attribute relatedType is Null Falg
    */
    private boolean relatedTypeNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String requestCode;

    /**
     * Attribute requestCode Be Seted Falg
     */
    private boolean requestCodeSetted = false;

    /**
    * Attribute requestCode is Null Falg
    */
    private boolean requestCodeNull = false;
    private String requestName;

    /**
     * Attribute requestName Be Seted Falg
     */
    private boolean requestNameSetted = false;

    /**
    * Attribute requestName is Null Falg
    */
    private boolean requestNameNull = false;
    private String requestContent;

    /**
     * Attribute requestContent Be Seted Falg
     */
    private boolean requestContentSetted = false;

    /**
    * Attribute requestContent is Null Falg
    */
    private boolean requestContentNull = false;
    private String requestLevel;

    /**
     * Attribute requestLevel Be Seted Falg
     */
    private boolean requestLevelSetted = false;

    /**
    * Attribute requestLevel is Null Falg
    */
    private boolean requestLevelNull = false;
    private String requestStatus;

    /**
     * Attribute requestStatus Be Seted Falg
     */
    private boolean requestStatusSetted = false;

    /**
    * Attribute requestStatus is Null Falg
    */
    private boolean requestStatusNull = false;
    private String requestType;

    /**
     * Attribute requestType Be Seted Falg
     */
    private boolean requestTypeSetted = false;

    /**
    * Attribute requestType is Null Falg
    */
    private boolean requestTypeNull = false;
    private String relatedRequestCode;

    /**
     * Attribute relatedRequestCode Be Seted Falg
     */
    private boolean relatedRequestCodeSetted = false;

    /**
    * Attribute relatedRequestCode is Null Falg
    */
    private boolean relatedRequestCodeNull = false;
    private String relatedRequestName;

    /**
     * Attribute relatedRequestName Be Seted Falg
     */
    private boolean relatedRequestNameSetted = false;

    /**
    * Attribute relatedRequestName is Null Falg
    */
    private boolean relatedRequestNameNull = false;
    private String relatedRequestContent;

    /**
     * Attribute relatedRequestContent Be Seted Falg
     */
    private boolean relatedRequestContentSetted = false;

    /**
    * Attribute relatedRequestContent is Null Falg
    */
    private boolean relatedRequestContentNull = false;
    private String relatedRequestLevel;

    /**
     * Attribute relatedRequestLevel Be Seted Falg
     */
    private boolean relatedRequestLevelSetted = false;

    /**
    * Attribute relatedRequestLevel is Null Falg
    */
    private boolean relatedRequestLevelNull = false;
    private String relatedRequestStatus;

    /**
     * Attribute relatedRequestStatus Be Seted Falg
     */
    private boolean relatedRequestStatusSetted = false;

    /**
    * Attribute relatedRequestStatus is Null Falg
    */
    private boolean relatedRequestStatusNull = false;
    private String relatedRequestType;

    /**
     * Attribute relatedRequestType Be Seted Falg
     */
    private boolean relatedRequestTypeSetted = false;

    /**
    * Attribute relatedRequestType is Null Falg
    */
    private boolean relatedRequestTypeNull = false;

    public ProductRequirementRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get requirementId
         *
         * @return long
         */
    final public long getRequirementId() {
        return requirementId;
    }

    /**
     * Set requirementId
     *
     * @param long
     */
    final public void setRequirementId(long requirementId) {
        this.requirementId = requirementId;

        this.requirementIdSetted = true;

        this.setRequirementIdNull(false);
    }

    /**
     * Get requirementId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequirementIdSetted() {
        return this.requirementIdSetted;
    }

    /**
     * Set requirementId Null
     *
     */
    final public void setRequirementIdNull() {
        this.requirementIdNull = true;
    }

    final public void setRequirementIdNull(boolean aNullFlag) {
        this.requirementIdNull = aNullFlag;
    }

    final public boolean isRequirementIdNull() {
        return this.requirementIdNull;
    }

    /**
         * Get relatedRequirementId
         *
         * @return long
         */
    final public long getRelatedRequirementId() {
        return relatedRequirementId;
    }

    /**
     * Set relatedRequirementId
     *
     * @param long
     */
    final public void setRelatedRequirementId(long relatedRequirementId) {
        this.relatedRequirementId = relatedRequirementId;

        this.relatedRequirementIdSetted = true;

        this.setRelatedRequirementIdNull(false);
    }

    /**
     * Get relatedRequirementId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequirementIdSetted() {
        return this.relatedRequirementIdSetted;
    }

    /**
     * Set relatedRequirementId Null
     *
     */
    final public void setRelatedRequirementIdNull() {
        this.relatedRequirementIdNull = true;
    }

    final public void setRelatedRequirementIdNull(boolean aNullFlag) {
        this.relatedRequirementIdNull = aNullFlag;
    }

    final public boolean isRelatedRequirementIdNull() {
        return this.relatedRequirementIdNull;
    }

    /**
         * Get relatedType
         *
         * @return String
         */
    final public String getRelatedType() {
        if (isRelatedTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedType);
        }
    }

    /**
     * Set relatedType
     *
     * @param String
     */
    final public void setRelatedType(String relatedType) {
        this.relatedType = StringUtils.trim(relatedType);

        this.relatedTypeSetted = true;

        this.setRelatedTypeNull(this.relatedType == null);
    }

    /**
     * Get relatedType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedTypeSetted() {
        return this.relatedTypeSetted;
    }

    /**
     * Set relatedType Null
     *
     */
    final public void setRelatedTypeNull() {
        this.relatedTypeNull = true;
    }

    final public void setRelatedTypeNull(boolean aNullFlag) {
        this.relatedTypeNull = aNullFlag;
    }

    final public boolean isRelatedTypeNull() {
        return this.relatedTypeNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get requestCode
         *
         * @return String
         */
    final public String getRequestCode() {
        if (isRequestCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(requestCode);
        }
    }

    /**
     * Set requestCode
     *
     * @param String
     */
    final public void setRequestCode(String requestCode) {
        this.requestCode = StringUtils.trim(requestCode);

        this.requestCodeSetted = true;

        this.setRequestCodeNull(this.requestCode == null);
    }

    /**
     * Get requestCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequestCodeSetted() {
        return this.requestCodeSetted;
    }

    /**
     * Set requestCode Null
     *
     */
    final public void setRequestCodeNull() {
        this.requestCodeNull = true;
    }

    final public void setRequestCodeNull(boolean aNullFlag) {
        this.requestCodeNull = aNullFlag;
    }

    final public boolean isRequestCodeNull() {
        return this.requestCodeNull;
    }

    /**
         * Get requestName
         *
         * @return String
         */
    final public String getRequestName() {
        if (isRequestNameNull()) {
            return null;
        } else {
            return StringUtils.trim(requestName);
        }
    }

    /**
     * Set requestName
     *
     * @param String
     */
    final public void setRequestName(String requestName) {
        this.requestName = StringUtils.trim(requestName);

        this.requestNameSetted = true;

        this.setRequestNameNull(this.requestName == null);
    }

    /**
     * Get requestName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequestNameSetted() {
        return this.requestNameSetted;
    }

    /**
     * Set requestName Null
     *
     */
    final public void setRequestNameNull() {
        this.requestNameNull = true;
    }

    final public void setRequestNameNull(boolean aNullFlag) {
        this.requestNameNull = aNullFlag;
    }

    final public boolean isRequestNameNull() {
        return this.requestNameNull;
    }

    /**
         * Get requestContent
         *
         * @return String
         */
    final public String getRequestContent() {
        if (isRequestContentNull()) {
            return null;
        } else {
            return StringUtils.trim(requestContent);
        }
    }

    /**
     * Set requestContent
     *
     * @param String
     */
    final public void setRequestContent(String requestContent) {
        this.requestContent = StringUtils.trim(requestContent);

        this.requestContentSetted = true;

        this.setRequestContentNull(this.requestContent == null);
    }

    /**
     * Get requestContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequestContentSetted() {
        return this.requestContentSetted;
    }

    /**
     * Set requestContent Null
     *
     */
    final public void setRequestContentNull() {
        this.requestContentNull = true;
    }

    final public void setRequestContentNull(boolean aNullFlag) {
        this.requestContentNull = aNullFlag;
    }

    final public boolean isRequestContentNull() {
        return this.requestContentNull;
    }

    /**
         * Get requestLevel
         *
         * @return String
         */
    final public String getRequestLevel() {
        if (isRequestLevelNull()) {
            return null;
        } else {
            return StringUtils.trim(requestLevel);
        }
    }

    /**
     * Set requestLevel
     *
     * @param String
     */
    final public void setRequestLevel(String requestLevel) {
        this.requestLevel = StringUtils.trim(requestLevel);

        this.requestLevelSetted = true;

        this.setRequestLevelNull(this.requestLevel == null);
    }

    /**
     * Get requestLevel Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequestLevelSetted() {
        return this.requestLevelSetted;
    }

    /**
     * Set requestLevel Null
     *
     */
    final public void setRequestLevelNull() {
        this.requestLevelNull = true;
    }

    final public void setRequestLevelNull(boolean aNullFlag) {
        this.requestLevelNull = aNullFlag;
    }

    final public boolean isRequestLevelNull() {
        return this.requestLevelNull;
    }

    /**
         * Get requestStatus
         *
         * @return String
         */
    final public String getRequestStatus() {
        if (isRequestStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(requestStatus);
        }
    }

    /**
     * Set requestStatus
     *
     * @param String
     */
    final public void setRequestStatus(String requestStatus) {
        this.requestStatus = StringUtils.trim(requestStatus);

        this.requestStatusSetted = true;

        this.setRequestStatusNull(this.requestStatus == null);
    }

    /**
     * Get requestStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequestStatusSetted() {
        return this.requestStatusSetted;
    }

    /**
     * Set requestStatus Null
     *
     */
    final public void setRequestStatusNull() {
        this.requestStatusNull = true;
    }

    final public void setRequestStatusNull(boolean aNullFlag) {
        this.requestStatusNull = aNullFlag;
    }

    final public boolean isRequestStatusNull() {
        return this.requestStatusNull;
    }

    /**
         * Get requestType
         *
         * @return String
         */
    final public String getRequestType() {
        if (isRequestTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(requestType);
        }
    }

    /**
     * Set requestType
     *
     * @param String
     */
    final public void setRequestType(String requestType) {
        this.requestType = StringUtils.trim(requestType);

        this.requestTypeSetted = true;

        this.setRequestTypeNull(this.requestType == null);
    }

    /**
     * Get requestType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRequestTypeSetted() {
        return this.requestTypeSetted;
    }

    /**
     * Set requestType Null
     *
     */
    final public void setRequestTypeNull() {
        this.requestTypeNull = true;
    }

    final public void setRequestTypeNull(boolean aNullFlag) {
        this.requestTypeNull = aNullFlag;
    }

    final public boolean isRequestTypeNull() {
        return this.requestTypeNull;
    }

    /**
         * Get relatedRequestCode
         *
         * @return String
         */
    final public String getRelatedRequestCode() {
        if (isRelatedRequestCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedRequestCode);
        }
    }

    /**
     * Set relatedRequestCode
     *
     * @param String
     */
    final public void setRelatedRequestCode(String relatedRequestCode) {
        this.relatedRequestCode = StringUtils.trim(relatedRequestCode);

        this.relatedRequestCodeSetted = true;

        this.setRelatedRequestCodeNull(this.relatedRequestCode == null);
    }

    /**
     * Get relatedRequestCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequestCodeSetted() {
        return this.relatedRequestCodeSetted;
    }

    /**
     * Set relatedRequestCode Null
     *
     */
    final public void setRelatedRequestCodeNull() {
        this.relatedRequestCodeNull = true;
    }

    final public void setRelatedRequestCodeNull(boolean aNullFlag) {
        this.relatedRequestCodeNull = aNullFlag;
    }

    final public boolean isRelatedRequestCodeNull() {
        return this.relatedRequestCodeNull;
    }

    /**
         * Get relatedRequestName
         *
         * @return String
         */
    final public String getRelatedRequestName() {
        if (isRelatedRequestNameNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedRequestName);
        }
    }

    /**
     * Set relatedRequestName
     *
     * @param String
     */
    final public void setRelatedRequestName(String relatedRequestName) {
        this.relatedRequestName = StringUtils.trim(relatedRequestName);

        this.relatedRequestNameSetted = true;

        this.setRelatedRequestNameNull(this.relatedRequestName == null);
    }

    /**
     * Get relatedRequestName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequestNameSetted() {
        return this.relatedRequestNameSetted;
    }

    /**
     * Set relatedRequestName Null
     *
     */
    final public void setRelatedRequestNameNull() {
        this.relatedRequestNameNull = true;
    }

    final public void setRelatedRequestNameNull(boolean aNullFlag) {
        this.relatedRequestNameNull = aNullFlag;
    }

    final public boolean isRelatedRequestNameNull() {
        return this.relatedRequestNameNull;
    }

    /**
         * Get relatedRequestContent
         *
         * @return String
         */
    final public String getRelatedRequestContent() {
        if (isRelatedRequestContentNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedRequestContent);
        }
    }

    /**
     * Set relatedRequestContent
     *
     * @param String
     */
    final public void setRelatedRequestContent(String relatedRequestContent) {
        this.relatedRequestContent = StringUtils.trim(relatedRequestContent);

        this.relatedRequestContentSetted = true;

        this.setRelatedRequestContentNull(this.relatedRequestContent == null);
    }

    /**
     * Get relatedRequestContent Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequestContentSetted() {
        return this.relatedRequestContentSetted;
    }

    /**
     * Set relatedRequestContent Null
     *
     */
    final public void setRelatedRequestContentNull() {
        this.relatedRequestContentNull = true;
    }

    final public void setRelatedRequestContentNull(boolean aNullFlag) {
        this.relatedRequestContentNull = aNullFlag;
    }

    final public boolean isRelatedRequestContentNull() {
        return this.relatedRequestContentNull;
    }

    /**
         * Get relatedRequestLevel
         *
         * @return String
         */
    final public String getRelatedRequestLevel() {
        if (isRelatedRequestLevelNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedRequestLevel);
        }
    }

    /**
     * Set relatedRequestLevel
     *
     * @param String
     */
    final public void setRelatedRequestLevel(String relatedRequestLevel) {
        this.relatedRequestLevel = StringUtils.trim(relatedRequestLevel);

        this.relatedRequestLevelSetted = true;

        this.setRelatedRequestLevelNull(this.relatedRequestLevel == null);
    }

    /**
     * Get relatedRequestLevel Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequestLevelSetted() {
        return this.relatedRequestLevelSetted;
    }

    /**
     * Set relatedRequestLevel Null
     *
     */
    final public void setRelatedRequestLevelNull() {
        this.relatedRequestLevelNull = true;
    }

    final public void setRelatedRequestLevelNull(boolean aNullFlag) {
        this.relatedRequestLevelNull = aNullFlag;
    }

    final public boolean isRelatedRequestLevelNull() {
        return this.relatedRequestLevelNull;
    }

    /**
         * Get relatedRequestStatus
         *
         * @return String
         */
    final public String getRelatedRequestStatus() {
        if (isRelatedRequestStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedRequestStatus);
        }
    }

    /**
     * Set relatedRequestStatus
     *
     * @param String
     */
    final public void setRelatedRequestStatus(String relatedRequestStatus) {
        this.relatedRequestStatus = StringUtils.trim(relatedRequestStatus);

        this.relatedRequestStatusSetted = true;

        this.setRelatedRequestStatusNull(this.relatedRequestStatus == null);
    }

    /**
     * Get relatedRequestStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequestStatusSetted() {
        return this.relatedRequestStatusSetted;
    }

    /**
     * Set relatedRequestStatus Null
     *
     */
    final public void setRelatedRequestStatusNull() {
        this.relatedRequestStatusNull = true;
    }

    final public void setRelatedRequestStatusNull(boolean aNullFlag) {
        this.relatedRequestStatusNull = aNullFlag;
    }

    final public boolean isRelatedRequestStatusNull() {
        return this.relatedRequestStatusNull;
    }

    /**
         * Get relatedRequestType
         *
         * @return String
         */
    final public String getRelatedRequestType() {
        if (isRelatedRequestTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedRequestType);
        }
    }

    /**
     * Set relatedRequestType
     *
     * @param String
     */
    final public void setRelatedRequestType(String relatedRequestType) {
        this.relatedRequestType = StringUtils.trim(relatedRequestType);

        this.relatedRequestTypeSetted = true;

        this.setRelatedRequestTypeNull(this.relatedRequestType == null);
    }

    /**
     * Get relatedRequestType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedRequestTypeSetted() {
        return this.relatedRequestTypeSetted;
    }

    /**
     * Set relatedRequestType Null
     *
     */
    final public void setRelatedRequestTypeNull() {
        this.relatedRequestTypeNull = true;
    }

    final public void setRelatedRequestTypeNull(boolean aNullFlag) {
        this.relatedRequestTypeNull = aNullFlag;
    }

    final public boolean isRelatedRequestTypeNull() {
        return this.relatedRequestTypeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductRequirementRelate) == false) {
            return false;
        }

        ProductRequirementRelate other = (ProductRequirementRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("requirementId=");
        buffer.append(this.requirementId);

        buffer.append("relatedRequirementId=");
        buffer.append(this.relatedRequirementId);

        buffer.append("relatedType=");
        buffer.append(this.relatedType);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("requestCode=");
        buffer.append(this.requestCode);

        buffer.append("requestName=");
        buffer.append(this.requestName);

        buffer.append("requestContent=");
        buffer.append(this.requestContent);

        buffer.append("requestLevel=");
        buffer.append(this.requestLevel);

        buffer.append("relatedRequestCode=");
        buffer.append(this.relatedRequestCode);

        buffer.append("relatedRequestName=");
        buffer.append(this.relatedRequestName);

        buffer.append("relatedRequestContent=");
        buffer.append(this.relatedRequestContent);

        buffer.append("relatedRequestLevel=");
        buffer.append(this.relatedRequestLevel);

        buffer.append("relatedRequestStatus=");
        buffer.append(this.relatedRequestStatus);

        buffer.append("requestStatus=");
        buffer.append(this.requestStatus);

        buffer.append("requestType=");
        buffer.append(this.requestType);

        buffer.append("relatedRequestType=");
        buffer.append(this.relatedRequestType);

        buffer.append("]");

        return buffer.toString();
    }
}
